import List from '../components/List'
import { connect } from 'react-redux'

function mapDispatch(dispatch) {
  return {
    push(item) {
      dispatch({ type: 'push', item })
    },
  }
}
export default connect((state) => ({ ls: state.ls.list }), mapDispatch)(List)
